home *** CD-ROM | disk | FTP | other *** search
-
- #include <stdio.h> /* N2 03-17-91 */
- #include <string.h> /* N2 03-17-91 */
- #include <dos.h> /* N2 03-17-91 */
- #include <io.h> /* N2 03-17-91 */
- #include <ctype.h> /* N2 03-17-91 */
- #include <stdlib.h> /* N2 04-05-91 */
-
- #define FIRSTCHAR ' '
- #define MAXCHAR 0377
- #define MAXBUFF 8192
- #define MAXSIZE 100
- #define MAXPATS 100 /* max number of patterns */
- #define BUFSIZE 2048
-
- #ifdef __cplusplus // 11-28-91
- #define min(x,y) (x) < (y) ? (x) : (y) // N2 11-28-91
- #define max(x,y) (x) > (y) ? (x) : (y) // N2 11-28-91
- #endif
-
- #define NULL 0
-
- struct PattDesc
- {
- int *Skip1, *Skip2; /* pointers to skip tables */
- char *Pattern;
- int PatLen; /* pattern length */
- char *Start; /* starting position of search (at beginning of pattern) */
- int Success; /* true when pattern found */
- };
-